package com.youlu.campus.admin.config;

import com.youlu.campus.admin.sign.service.SignPlanService;
import com.yuelin.infrastructure.quantum.hessian.client.HessianClientConfig;
import com.yuelin.infrastructure.quantum.hessian.client.SecuredClient;
import com.yuelin.infrastructure.quantum.hessian.client.THessianProxyFactoryBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by zgz on 2020/11/12.
 */
//@Configuration()
public class HessianConsumer {

//    @Bean
//    public THessianProxyFactoryBean<SignPlanService> signPlanApiService(
//            @Value("${quantum.provider.campus.url}") String url
//    ) {
//        THessianProxyFactoryBean<SignPlanService> ret = SecuredClient.createClient(SignPlanService.class,
//                url + "/remote/hessian/sign-plan-api-service",
//                getConfig());
//        return ret;
//    }
//
//    private HessianClientConfig getConfig() {
//        HessianClientConfig c = new HessianClientConfig();
//        c.app = "campus-admin";
//        c.signKey = "E0263809CE965B8030A2E490B9AB6662";
//        c.seed = 1564661386432L;
//        return c;
//    }

}
